package com.baoai.dto;

import com.baoai.common.ArrayQuery;
import com.baoai.common.IdName;
import com.baoai.common.StringWords;
import org.springframework.stereotype.Repository;

/**
 * 用于视频的dto
 * Created by xiaren on 2017/4/6.
 */
@Repository("course")
public class CourseDto extends BaseDto {

    private String className = "course";
    private String id;
    @IdName
    private String courseId; //课程id
    private String title;   // 课程名称
    private String srcJson; // 课程图片 eg、["http://pic6.huitu.com/res/20130116/84481_20130116142820494200_1.jpg"]
    private Integer learnNumber; //学习的人数
    private Integer start;   //星星
    private Double presentPrice;    //现在价格
    private Double oldPrice;    //原价
    private String channelId;   // 频道id
    private String channelName; //频道名称
    private String author;  //作者
    private String styleType; // (1大图 2小图)
    private String sex;   // 性别 0所有，1男，2女
    private Long createDate;    // 当前时间的毫秒数
    private Long updateDate;    //修改时间
    @StringWords
    private String state;  //状态 1有效0无效

    private Integer shareNumber;    //分享个数
    private Integer collectNumber;  // 收藏个数
    private Integer commentNumber;  //评论个数
    @ArrayQuery(lengthName = "tutorIdJson_Count")
    private String tutorIdJson;   // 标签   eg、[1,2]
    private String chargeType;  // 收费类型 1免费 2收费

    public String getTutorIdJson() {
        return tutorIdJson;
    }

    public void setTutorIdJson(String tutorIdJson) {
        this.tutorIdJson = tutorIdJson;
    }

    public String getChargeType() {
        return chargeType;
    }

    public void setChargeType(String chargeType) {
        this.chargeType = chargeType;
    }

    public Integer getShareNumber() {
        return shareNumber;
    }

    public void setShareNumber(Integer shareNumber) {
        this.shareNumber = shareNumber;
    }

    public Integer getCollectNumber() {
        return collectNumber;
    }

    public void setCollectNumber(Integer collectNumber) {
        this.collectNumber = collectNumber;
    }

    public Integer getCommentNumber() {
        return commentNumber;
    }

    public void setCommentNumber(Integer commentNumber) {
        this.commentNumber = commentNumber;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "CourseDto{" +
                "className='" + className + '\'' +
                ", id='" + id + '\'' +
                ", courseId='" + courseId + '\'' +
                ", title='" + title + '\'' +
                ", srcJson='" + srcJson + '\'' +
                ", learnNumber=" + learnNumber +
                ", start=" + start +
                ", presentPrice=" + presentPrice +
                ", oldPrice=" + oldPrice +
                ", channelId='" + channelId + '\'' +
                ", channelName='" + channelName + '\'' +
                ", author='" + author + '\'' +
                ", styleType='" + styleType + '\'' +
                ", sex='" + sex + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", state='" + state + '\'' +
                ", shareNumber=" + shareNumber +
                ", collectNumber=" + collectNumber +
                ", commentNumber=" + commentNumber +
                ", tutorIdJson='" + tutorIdJson + '\'' +
                ", chargeType='" + chargeType + '\'' +
                '}';
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSrcJson() {
        return srcJson;
    }

    public void setSrcJson(String srcJson) {
        this.srcJson = srcJson;
    }

    public Integer getLearnNumber() {
        return learnNumber;
    }

    public void setLearnNumber(Integer learnNumber) {
        this.learnNumber = learnNumber;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Double getPresentPrice() {
        return presentPrice;
    }

    public void setPresentPrice(Double presentPrice) {
        this.presentPrice = presentPrice;
    }

    public Double getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(Double oldPrice) {
        this.oldPrice = oldPrice;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getStyleType() {
        return styleType;
    }

    public void setStyleType(String styleType) {
        this.styleType = styleType;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public Long getCreateDate() {
        return createDate;
    }

    @Override
    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    @Override
    public Long getUpdateDate() {
        return updateDate;
    }

    @Override
    public void setUpdateDate(Long updateDate) {
        this.updateDate = updateDate;
    }
}
